package sm.codec;

import org.apache.mina.core.buffer.IoBuffer;

import sm.codec.api.Codec;
import sm.codec.exception.DecodeException;
import sm.codec.exception.EncodeException;
import sm.def.Type;

public class ArrayCodec extends AbstractStructCodec implements Codec {

	@Override
	public Object decode(IoBuffer buffer) throws DecodeException {
		return decode(buffer, Type.ARRAY_TYPE);
	}

	@Override
	public void encode(IoBuffer buffer, Object obj) throws EncodeException {
		super.encode(buffer, obj, Type.ARRAY_TYPE);
	}

}
